#!/bin/bash

# 部署mysql
docker rm -f mysql

docker run -d --name mysql --restart=unless-stopped \
  -e MYSQL_ROOT_PASSWORD=zYw9sCeGuJ5TwJ5BinAz \
  -p 3306:3306 \
  -v /opt/mysql/data:/var/lib/mysql \
  -v /opt/mysql/conf:/etc/mysql/conf.d \
  mysql:8.0

# 部署redis